
require 'singleton'

module OPayXCConfigPlugin

class OPayXCConfigContext
  include Singleton

  attr_accessor :working_path
  attr_accessor :environment_name
  attr_accessor :configfile_list

  def add_project(proj)
    @projects.push(proj)
  end


  def all_projects
    @projects.map { |project| 
        puts "all_projects=========" + project
        File.join(working_path, project) 
    }
  end

  private

  def initialize
    @projects = []
    @configfile_list = []
    @working_path = nil
    @environment_name = nil
  end
end
end